<template>
    <Header />
    <div class="container">
        <el-tabs v-model="activeTab">
            <Foodpost />
            <Recipepost />
        </el-tabs>    
    </div>
</template>

<script setup>
import { ref } from 'vue';
import Header from '~/components/Header.vue';
import Foodpost from '~/components/Foodpost.vue';
import Recipepost from '~/components/Recipepost.vue';

const activeTab = ref('recipe');
</script>

<style scoped>
.container {
    width: 1024px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}


</style>